package io.geekidea.boot.materials.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.geekidea.boot.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@TableName("tb_store_materials")
@Schema(description = "修改门店物料参数")
public class MaterialsUpdateDto  extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id")
    private Integer id;

    @Schema(description = "物料单号")
    @TableField("numbers")
    private String numbers;
    @Schema(description = "物料名称")
    @TableField("name")
    private String name;
    @Schema(description = "物料编码")
    @TableField("code")
    private String code;
    @Schema(description = "物料税号")
    @TableField("taxsh")
    private String taxsh;
    @Schema(description = "总库存")
    @TableField("total_stock")
    private int totalStock;
    @Schema(description = "可用库存（0：总库存  1：锁定库存  2：安全库存）")
    @TableField("availableInventory")
    private String availableInventory;
    @Schema(description = "锁定库存")
    @TableField("lockInventory")
    private String lockInventory;
    @Schema(description = "安全库存")
    @TableField("secureInventory")
    private String secureInventory;
    @Schema(description = "库龄")
    @TableField("stockage")
    private Integer stockage;
    @Schema(description = "入库时间")
    @TableField("warehousingTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime warehousingTime;
    @Schema(description = "物料来源 （入库  or  调拨）")
    @TableField("materialsource")
    private String materialsource;


    /**关联表字段*/
    @Schema(description = "物料类型id")
    @TableField("typeid")
    private Integer typeid;
    @Schema(description = "供应商id")
    @TableField("supplierId")
    private Integer supplierId;
    @Schema(description = "物料仓库id")
    @TableField("warehouseId")
    private Integer warehouseId;
    @Schema(description = "战区id")
    @TableField("areaId")
    private Integer areaId;
    @Schema(description = "门店id")
    @TableField("storesId")
    private Integer storesId;






}
